

<!DOCTYPE html>
<html lang="zh-CN" data-default-color-scheme=auto>



<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/guodd012/guodd012.gitee.io.git/img/1.png">
  <link rel="icon" href="/guodd012/guodd012.gitee.io.git/img/1.png">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="author" content="guodd012">
  <meta name="keywords" content="">
  
    <meta name="description" content="Markdown基本语法">
<meta property="og:type" content="article">
<meta property="og:title" content="Markdown基本语法">
<meta property="og:url" content="https://gitee.com/guodd012/guodd012.gitee.io.git/2024/01/15/Markdown%E5%9F%BA%E6%9C%AC%E8%AF%AD%E6%B3%95/index.html">
<meta property="og:site_name" content="Guodd">
<meta property="og:description" content="Markdown基本语法">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2024-01-15T02:32:24.000Z">
<meta property="article:modified_time" content="2024-01-15T02:49:15.160Z">
<meta property="article:author" content="guodd012">
<meta property="article:tag" content="Markdown">
<meta name="twitter:card" content="summary_large_image">
  
  
    <meta name="referrer" content="no-referrer-when-downgrade">
  
  
  <title>Markdown基本语法 - Guodd</title>

  <link  rel="stylesheet" href="https://lib.baomitu.com/twitter-bootstrap/4.6.1/css/bootstrap.min.css" />



  <link  rel="stylesheet" href="https://lib.baomitu.com/github-markdown-css/4.0.0/github-markdown.min.css" />

  <link  rel="stylesheet" href="https://lib.baomitu.com/hint.css/2.7.0/hint.min.css" />

  <link  rel="stylesheet" href="https://lib.baomitu.com/fancybox/3.5.7/jquery.fancybox.min.css" />



<!-- 主题依赖的图标库，不要自行修改 -->
<!-- Do not modify the link that theme dependent icons -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_hj8rtnfg7um.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_lbnruvf0jn.css">


<link  rel="stylesheet" href="/guodd012/guodd012.gitee.io.git/css/main.css" />


  <link id="highlight-css" rel="stylesheet" href="/guodd012/guodd012.gitee.io.git/css/highlight.css" />
  
    <link id="highlight-css-dark" rel="stylesheet" href="/guodd012/guodd012.gitee.io.git/css/highlight-dark.css" />
  




  <script id="fluid-configs">
    var Fluid = window.Fluid || {};
    Fluid.ctx = Object.assign({}, Fluid.ctx)
    var CONFIG = {"hostname":"gitee.com","root":"/guodd012/guodd012.gitee.io.git/","version":"1.9.7","typing":{"enable":true,"typeSpeed":70,"cursorChar":"_","loop":false,"scope":[]},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"left","visible":"hover","icon":""},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"code_language":{"enable":true,"default":"TEXT"},"copy_btn":true,"image_caption":{"enable":true},"image_zoom":{"enable":true,"img_url_replace":["",""]},"toc":{"enable":true,"placement":"right","headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":true,"loading_img":"/img/loading.gif","onlypost":false,"offset_factor":2},"web_analytics":{"enable":false,"follow_dnt":true,"baidu":null,"google":{"measurement_id":null},"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":null,"app_key":null,"server_url":null,"path":"window.location.pathname","ignore_local":false}},"search_path":"/guodd012/guodd012.gitee.io.git/local-search.xml","include_content_in_search":true};

    if (CONFIG.web_analytics.follow_dnt) {
      var dntVal = navigator.doNotTrack || window.doNotTrack || navigator.msDoNotTrack;
      Fluid.ctx.dnt = dntVal && (dntVal.startsWith('1') || dntVal.startsWith('yes') || dntVal.startsWith('on'));
    }
  </script>
  <script  src="/guodd012/guodd012.gitee.io.git/js/utils.js" ></script>
  <script  src="/guodd012/guodd012.gitee.io.git/js/color-schema.js" ></script>
  


  
<meta name="generator" content="Hexo 7.0.0"></head>


<body>
  

  <header>
    

<div class="header-inner" style="height: 70vh;">
  <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand" href="/guodd012/guodd012.gitee.io.git/">
      <strong>Guodd012</strong>
    </a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/guodd012/guodd012.gitee.io.git/" target="_self">
                <i class="iconfont icon-home-fill"></i>
                <span>首页</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/guodd012/guodd012.gitee.io.git/archives/" target="_self">
                <i class="iconfont icon-archive-fill"></i>
                <span>归档</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/guodd012/guodd012.gitee.io.git/categories/" target="_self">
                <i class="iconfont icon-category-fill"></i>
                <span>分类</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/guodd012/guodd012.gitee.io.git/tags/" target="_self">
                <i class="iconfont icon-tags-fill"></i>
                <span>标签</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/guodd012/guodd012.gitee.io.git/about/" target="_self">
                <i class="iconfont icon-user-fill"></i>
                <span>关于</span>
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" target="_self" href="javascript:;" data-toggle="modal" data-target="#modalSearch" aria-label="Search">
              <i class="iconfont icon-search"></i>
            </a>
          </li>
          
        
        
          <li class="nav-item" id="color-toggle-btn">
            <a class="nav-link" target="_self" href="javascript:;" aria-label="Color Toggle">
              <i class="iconfont icon-dark" id="color-toggle-icon"></i>
            </a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

  

<div id="banner" class="banner" parallax=true
     style="background: url('/guodd012/guodd012.gitee.io.git/img/background-image.jpg') no-repeat center center; background-size: cover;">
  <div class="full-bg-img">
    <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
      <div class="banner-text text-center fade-in-up">
        <div class="h2">
          
            <span id="subtitle" data-typed-text="Markdown基本语法"></span>
          
        </div>

        
          
  <div class="mt-3">
    
    
      <span class="post-meta">
        <i class="iconfont icon-date-fill" aria-hidden="true"></i>
        <time datetime="2024-01-15 10:32" pubdate>
          2024年1月15日 上午
        </time>
      </span>
    
  </div>

  <div class="mt-1">
    
      <span class="post-meta mr-2">
        <i class="iconfont icon-chart"></i>
        
          1.7k 字
        
      </span>
    

    
      <span class="post-meta mr-2">
        <i class="iconfont icon-clock-fill"></i>
        
        
        
          14 分钟
        
      </span>
    

    
    
  </div>


        
      </div>

      
    </div>
  </div>
</div>

</div>

  </header>

  <main>
    
      

<div class="container-fluid nopadding-x">
  <div class="row nomargin-x">
    <div class="side-col d-none d-lg-block col-lg-2">
      

    </div>

    <div class="col-lg-8 nopadding-x-md">
      <div class="container nopadding-x-md" id="board-ctn">
        <div id="board">
          <article class="post-content mx-auto">
            <h1 id="seo-header">Markdown基本语法</h1>
            
            
              <div class="markdown-body">
                
                <h1 id="Markdown基本语法"><a href="#Markdown基本语法" class="headerlink" title="Markdown基本语法"></a>Markdown基本语法</h1><span id="more"></span>

<h3 id="一、基础语法"><a href="#一、基础语法" class="headerlink" title="一、基础语法"></a>一、基础语法</h3><h4 id="1-分级标题"><a href="#1-分级标题" class="headerlink" title="1 分级标题"></a>1 分级标题</h4><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><code class="hljs bash">//用(<span class="hljs-comment">#)号可表示 1-6 级标题:</span><br><span class="hljs-comment"># 一级标题</span><br><span class="hljs-comment">## 二级标题</span><br><span class="hljs-comment">### 三级标题</span><br><span class="hljs-comment">#### 四级标题</span><br><span class="hljs-comment">##### 五级标题</span><br><span class="hljs-comment">###### 六级标题</span><br></code></pre></td></tr></table></figure>

<h4 id="2-字体格式"><a href="#2-字体格式" class="headerlink" title="2 字体格式"></a>2 字体格式</h4><figure class="highlight maxima"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><code class="hljs maxima">文本居中：&lt;<span class="hljs-built_in">center</span>&gt;居中的文本内容&lt;/<span class="hljs-built_in">center</span>&gt;<br>下划线：&lt;u&gt;需要下划线的内容&lt;/u&gt;<br>斜体：*斜体文本* 或 <span class="hljs-symbol">_</span>斜体文本<span class="hljs-symbol">_</span> （可跨行）<br>粗体：**加粗文本** 或 <span class="hljs-symbol">__</span>加粗文本<span class="hljs-symbol">__</span>（可跨行）<br>删除线：~~删除文本~~<br>标记：==标记文本==<br></code></pre></td></tr></table></figure>

<h4 id="3-链接"><a href="#3-链接" class="headerlink" title="3 链接"></a>3 链接</h4><h5 id="3-1-行内式"><a href="#3-1-行内式" class="headerlink" title="3.1 行内式"></a>3.1 行内式</h5><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash">[链接文字](链接地址 <span class="hljs-string">&quot;链接标题&quot;</span>) <br>//链接地址与链接标题之间有一个空格<br></code></pre></td></tr></table></figure>

<h5 id="3-2-参考式"><a href="#3-2-参考式" class="headerlink" title="3.2 参考式"></a>3.2 参考式</h5><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><code class="hljs bash">文中写法：[链接文字][链接标记]<br>文尾写法：[链接标记]:链接地址 <span class="hljs-string">&quot;链接标题&quot;</span><br>//链接地址与链接标题之间有一个空格<br>//如果链接文字本身可以做为链接标记，也可以写成 [链接文字][]<br></code></pre></td></tr></table></figure>

<h4 id="3-3-自动链接"><a href="#3-3-自动链接" class="headerlink" title="3.3 自动链接"></a>3.3 自动链接</h4><blockquote>
<p><a target="_blank" rel="noopener" href="https://so.csdn.net/so/search?q=Markdown&spm=1001.2101.3001.7020">Markdown</a>支持以比较简短的自动链接形式来处理网址和电子邮件信箱，只要是用&lt;&gt;包起来，Markdown就会自动把它转成链接。一般网址的链接文字就和链接地址—样，例如:</p>
</blockquote>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash">自动网页链接：&lt;https://www.baidu.com&gt;<br>自动邮箱链接：&lt;address@www.baidu.com&gt;<br></code></pre></td></tr></table></figure>

<h4 id="4-分隔线"><a href="#4-分隔线" class="headerlink" title="4 分隔线"></a>4 分隔线</h4><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash">//用三个以上星号(*)、减号(-)、底线(_)来建立一个分隔线<br>*** 或 --- 或 ___<br></code></pre></td></tr></table></figure>

<h4 id="5-代码"><a href="#5-代码" class="headerlink" title="5 代码"></a>5 代码</h4><h5 id="5-1-行内代码"><a href="#5-1-行内代码" class="headerlink" title="5.1 行内代码"></a>5.1 行内代码</h5><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash">//用1个(`)符号包裹代码，一般在 ESC 键下方<br>`<span class="hljs-built_in">printf</span>(s)` <br></code></pre></td></tr></table></figure>

<h5 id="5-2-多行代码"><a href="#5-2-多行代码" class="headerlink" title="5.2 多行代码"></a>5.2 多行代码</h5><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash">//法一：利用缩进(Tab)实现多行代码<br>//法二：利用3个(`)包裹实现多行代码<br></code></pre></td></tr></table></figure>

<h4 id="6-引用"><a href="#6-引用" class="headerlink" title="6 引用"></a>6 引用</h4><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><code class="hljs bash">//多层嵌套<br>&gt;这是引用文字<br>&gt;&gt;这是多重引用文字<br>&gt;这是一段无法跳出多层嵌套的文字<br>&gt;&gt;&gt;这是多重引用文字<br></code></pre></td></tr></table></figure>

<h4 id="7-列表"><a href="#7-列表" class="headerlink" title="7 列表"></a>7 列表</h4><h5 id="7-1-无序列表"><a href="#7-1-无序列表" class="headerlink" title="7.1 无序列表"></a>7.1 无序列表</h5><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><code class="hljs bash">//使用星号(*)、加号(+)、减号(-)作为列表标记，后面要添加一个空格<br>* 无序列表项一<br>+ 无序列表项二<br>- 无序列表项三<br><br>无序列表嵌套有序列表<br>+ 无序列表项一<br>	1. 有序列表项一<br>	2. 有序列表项二<br>	3. 有序列表项三<br> <br> 无序列表嵌套无序列表<br>- 无序列表项一<br>	- 嵌套无序列表项一<br>	- 嵌套无序列表项二<br>	- 嵌套无序列表项三<br><br></code></pre></td></tr></table></figure>

<h5 id="7-2-有序列表"><a href="#7-2-有序列表" class="headerlink" title="7.2 有序列表"></a>7.2 有序列表</h5><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><code class="hljs bash">//数字并加上(.)号来表示,后面添加一个空格<br>1. 有序列表项一<br>2. 有序列表项二<br>3. 有序列表项三<br></code></pre></td></tr></table></figure>

<h5 id="7-3-Todo-列表"><a href="#7-3-Todo-列表" class="headerlink" title="7.3 Todo 列表"></a>7.3 Todo 列表</h5><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><code class="hljs bash">//注意空格<br>* [x] java<br>* [ ] c++<br>- [ ] python <br><br></code></pre></td></tr></table></figure>

<h4 id="8-表格"><a href="#8-表格" class="headerlink" title="8 表格"></a>8 表格</h4><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><code class="hljs bash">//用(|)来分隔不同的单元格，使用(-)来分隔表头和其他行:<br>|  表头1   | 表头2  | 表头3 |<br>|  ----  | ----  | ---- |<br>| 单元格  | 单元格 | 单元格 |<br>| 单元格  | 单元格 | 单元格 |<br><br>//可以设置表格的对齐方式：<br>//-: 设置内容和标题栏居右对齐<br>//:- 设置内容和标题栏居左对齐<br>//:-: 设置内容和标题栏居中对齐<br>| 左对齐 | 右对齐 | 居中对齐 |<br>| :-----| ----: | :----: |<br>| 单元格 | 单元格 | 单元格 |<br>| 单元格 | 单元格 | 单元格 |<br><br></code></pre></td></tr></table></figure>

<h4 id="9-图像"><a href="#9-图像" class="headerlink" title="9 图像"></a>9 图像</h4><p>Markdown图片大小对齐边框。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><code class="hljs bash">&lt;img src=<span class="hljs-string">&#x27;图片地址&#x27;</span> align=<span class="hljs-string">&#x27;right&#x27;</span> style=<span class="hljs-string">&#x27; width:300px;height:100px </span><br><span class="hljs-string">BORDER-RIGHT:#007979 5px solid；</span><br><span class="hljs-string">BORDER-TOP:#007979 5px solid；</span><br><span class="hljs-string">BORDER-LEFT：#007979 5px solid；</span><br><span class="hljs-string">BORDER-BOTTOM:#007979 5px solid；</span><br><span class="hljs-string">&#x27;</span>/&gt;<br>&lt;table border=<span class="hljs-string">&quot;5&quot;</span>&gt;&lt;<span class="hljs-built_in">tr</span>&gt;<br>&lt;td&gt;&lt;img src=<span class="hljs-string">&quot;https://img-blog.csdnimg.cn/c8042589a8f1424dad35e4b9a295ed7f.png&quot;</span>&gt;&lt;/td&gt;<br>&lt;td&gt;&lt;img src=<span class="hljs-string">&quot;https://img-blog.csdnimg.cn/dc7b12d13c85437a941e7f365476d63e.png&quot;</span>&gt;&lt;/td&gt;<br>&lt;/tr&gt;&lt;/table&gt;<br><br></code></pre></td></tr></table></figure>

<blockquote>
<p>Alt：如果图片因为某些原因不能显示，就用定义的图片Alt文字来代替图片<br>Title：表示鼠标悬停于图片上时出现的文字</p>
</blockquote>
<h5 id="9-1-行内式"><a href="#9-1-行内式" class="headerlink" title="9.1 行内式"></a>9.1 行内式</h5><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><code class="hljs bash">//语法格式：![图片Alt](图片地址 <span class="hljs-string">&quot;图片Title&quot;</span>)<br>![美女](https://img-blog.csdnimg.cn/img_convert/fc055b75c5d4ca3161844af3fbd3afb2.png<span class="hljs-string">&quot;美女&quot;</span>  在这个位置进行修改)<br><br>第一种方式：<br><span class="hljs-comment"># 调整图片位置  （在地址http最后添加如下代码)</span><br><span class="hljs-comment">## 居中对齐：#pic_center</span><br><span class="hljs-comment">## 向左对齐: #pic_left</span><br><span class="hljs-comment">## 向右对齐: #pic_right</span><br><br><span class="hljs-comment"># 调整图大小 （在地址http最后添加=200x, 表示图像的宽200像素，高的大小会自动按比例缩放  也可以同时改变宽和高=200x300, 但是会破坏比例）</span><br><span class="hljs-comment">#pic_center=200x500</span><br><br>第二种方式：html标签<br>&lt;img src=<span class="hljs-string">&quot;xxx&quot;</span> width=<span class="hljs-string">&quot;30%&quot;</span>&gt;<br>图片的链接地址一般形式如下：http://img~~~~.pang? 后面的不是<br>居中对齐：&lt;center&gt;&lt;img src=<span class="hljs-string">&quot;&quot;</span> width=<span class="hljs-string">&quot;&quot;</span>&gt;&lt;/center&gt;<br><br></code></pre></td></tr></table></figure>

<h5 id="9-2-参考式"><a href="#9-2-参考式" class="headerlink" title="9.2 参考式"></a>9.2 参考式</h5><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><code class="hljs bash">//在文档中要插入图片的位置写 ![图片Alt][标记]<br>//在文档的最后写上  [标记]:图片地址 <span class="hljs-string">&quot;Title&quot;</span><br>这是![美女][girl]文档<br><br>文档最后：<br>1. [girl]: https://img-blog.csdnimg.cn/img_convert/fc055b75c5d4ca3161844af3fbd3afb2.png <span class="hljs-string">&quot;美女&quot;</span><br>2. []: <br><br></code></pre></td></tr></table></figure>

<h4 id="10-锚点"><a href="#10-锚点" class="headerlink" title="10 锚点"></a>10 锚点</h4><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs bash">首先创建一个跳转链接：[说明文字](<span class="hljs-comment">#jump)</span><br>标记要跳转的位置：&lt;span <span class="hljs-built_in">id</span> = <span class="hljs-string">&quot;jump&quot;</span>&gt;跳转位置&lt;/span&gt;<br><br></code></pre></td></tr></table></figure>

<h4 id="11-注脚"><a href="#11-注脚" class="headerlink" title="11 注脚"></a>11 注脚</h4><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><code class="hljs bash">//在需要添加注脚的文字后加上注脚名字：[^注脚名字]<br>//在文本的任意位置（一般在最后）添加注脚：[^注脚名字]: 注脚<br>//经测试注脚与注脚之间必须空一行<br>//即使你没有把注脚写在文末，经Markdown转换后，也会自动归类到文章的最后<br><br>使用Markdown[^1]可以效率的书写文档，直接转换成HTML[^2]<br>[^1]: Markdiown是—种纯文本标记语言<br><br>[^2]:HyperText Markup Language超文本标记语言显示效果<br><br></code></pre></td></tr></table></figure>

<h4 id="12-注释"><a href="#12-注释" class="headerlink" title="12 注释"></a>12 注释</h4><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><code class="hljs bash">//Markdown 的语法格式为: *[注释内容]:注释 <br>Markdown 将文本转换为 HTML。<br>*[HTML]:超文本标记语言<br>//使用html &lt;abbr&gt;标签<br>&lt;p&gt;<br>Hi,I am X &lt;abbr title=<span class="hljs-string">&quot;I am X&quot;</span>&gt;IAX&lt;/abbr&gt;.<br>&lt;/p&gt;<br><br></code></pre></td></tr></table></figure>

<h4 id="13-上下标"><a href="#13-上下标" class="headerlink" title="13 上下标"></a>13 上下标</h4><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><code class="hljs bash">//上标用(^)包裹内容，或用html &lt;sup&gt;标签<br>18^th^<br>18&lt;sup&gt;th&lt;/sup&gt;<br>//下标用(~)包裹内容，或用html &lt;sub&gt;标签<br>H~2~O <br>H&lt;sub&gt;2&lt;/sub&gt;O<br><br></code></pre></td></tr></table></figure>

<h4 id="14-补充"><a href="#14-补充" class="headerlink" title="14 补充"></a>14 补充</h4><h5 id="14-1-换行"><a href="#14-1-换行" class="headerlink" title="14.1 换行"></a>14.1 换行</h5><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><code class="hljs bash">//发一：两个以上空格+回车<br>//法二：一个Enter文本换行<br>//法三：两个Enter段落换行<br>//法四：HTML标签换行 &lt;br /&gt;<br><br></code></pre></td></tr></table></figure>

<h5 id="14-2-缩进"><a href="#14-2-缩进" class="headerlink" title="14.2 缩进"></a>14.2 缩进</h5><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><code class="hljs bash">&amp;nbsp;&amp;nbsp;不断行的空白格&amp;nbsp;或&amp;<span class="hljs-comment">#160;</span><br>&amp;ensp;&amp;ensp;半角的空白&amp;ensp;或&amp;<span class="hljs-comment">#8194;</span><br>&amp;emsp;&amp;emsp;全角的空白&amp;emsp;或&amp;<span class="hljs-comment">#8195;</span><br><br></code></pre></td></tr></table></figure>

<h5 id="14-3-特殊字符"><a href="#14-3-特殊字符" class="headerlink" title="14.3 特殊字符"></a>14.3 特殊字符</h5><blockquote>
<p>💙 💘其他特殊字符，更多字符对应的Unicode码，参考网站 <a target="_blank" rel="noopener" href="https://unicode-table.com/cn/">https://unicode-table.com/cn/</a></p>
</blockquote>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><code class="hljs bash">//Markdown中的语法符号，前面加反斜线 \ 即可显示符号本身。<br>\\ ：反斜杠<br>\` ：反引号<br>\* ：星号<br>\_ 	 ：下划线<br>\&#123;\&#125; ：大括号<br>\[\] ：中括号<br>\(\) ：小括号<br>\<span class="hljs-comment"># ：井号</span><br>\+ ：加号<br>\- ：减号<br>\. ：英文句号<br>\! ：感叹号<br><br></code></pre></td></tr></table></figure>

<h5 id="14-4-生成自动目录"><a href="#14-4-生成自动目录" class="headerlink" title="14.4 生成自动目录"></a>14.4 生成自动目录</h5><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">@[toc]<br></code></pre></td></tr></table></figure>

                
              </div>
            
            <hr/>
            <div>
              <div class="post-metas my-3">
  
    <div class="post-meta mr-3 d-flex align-items-center">
      <i class="iconfont icon-category"></i>
      

<span class="category-chains">
  
  
    
      <span class="category-chain">
        
  <a href="/guodd012/guodd012.gitee.io.git/categories/Markdown/" class="category-chain-item">Markdown</a>
  
  

      </span>
    
  
</span>

    </div>
  
  
    <div class="post-meta">
      <i class="iconfont icon-tags"></i>
      
        <a href="/guodd012/guodd012.gitee.io.git/tags/Markdown/" class="print-no-link">#Markdown</a>
      
    </div>
  
</div>


              
  

  <div class="license-box my-3">
    <div class="license-title">
      <div>Markdown基本语法</div>
      <div>https://gitee.com/guodd012/guodd012.gitee.io.git/2024/01/15/Markdown基本语法/</div>
    </div>
    <div class="license-meta">
      
        <div class="license-meta-item">
          <div>作者</div>
          <div>guodd012</div>
        </div>
      
      
        <div class="license-meta-item license-meta-date">
          <div>发布于</div>
          <div>2024年1月15日</div>
        </div>
      
      
      
        <div class="license-meta-item">
          <div>许可协议</div>
          <div>
            
              
              
                <a class="print-no-link" target="_blank" href="https://creativecommons.org/licenses/by/4.0/">
                  <span class="hint--top hint--rounded" aria-label="BY - 署名">
                    <i class="iconfont icon-by"></i>
                  </span>
                </a>
              
            
          </div>
        </div>
      
    </div>
    <div class="license-icon iconfont"></div>
  </div>



              
                <div class="post-prevnext my-3">
                  <article class="post-prev col-6">
                    
                    
                      <a href="/guodd012/guodd012.gitee.io.git/2024/01/16/%E8%B4%B7%E6%AC%BE%E5%88%A9%E7%8E%87/" title="贷款利率">
                        <i class="iconfont icon-arrowleft"></i>
                        <span class="hidden-mobile">贷款利率</span>
                        <span class="visible-mobile">上一篇</span>
                      </a>
                    
                  </article>
                  <article class="post-next col-6">
                    
                    
                      <a href="/guodd012/guodd012.gitee.io.git/2024/01/15/UOS%E9%85%8D%E7%BD%AE%E5%A4%9A%E8%B7%AF%E5%BE%84/" title="UOS配置多路径">
                        <span class="hidden-mobile">UOS配置多路径</span>
                        <span class="visible-mobile">下一篇</span>
                        <i class="iconfont icon-arrowright"></i>
                      </a>
                    
                  </article>
                </div>
              
            </div>

            
  
  
    <article id="comments" lazyload>
      

    </article>
  


          </article>
        </div>
      </div>
    </div>

    <div class="side-col d-none d-lg-block col-lg-2">
      
  <aside class="sidebar" style="margin-left: -1rem">
    <div id="toc">
  <p class="toc-header">
    <i class="iconfont icon-list"></i>
    <span>目录</span>
  </p>
  <div class="toc-body" id="toc-body"></div>
</div>



  </aside>


    </div>
  </div>
</div>





  



  



  



  



  







    

    
      <a id="scroll-top-button" aria-label="TOP" href="#" role="button">
        <i class="iconfont icon-arrowup" aria-hidden="true"></i>
      </a>
    

    
      <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v" for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>

    

    
  </main>

  <footer>
    <div class="footer-inner">
  
    <div class="footer-content">
       <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a> <i class="iconfont icon-love"></i> <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener"><span>Fluid</span></a> 
    </div>
  
  
    <div class="statistics">
  
  

  
    
      <span id="busuanzi_container_site_pv" style="display: none">
        总访问量 
        <span id="busuanzi_value_site_pv"></span>
         次
      </span>
    
    
      <span id="busuanzi_container_site_uv" style="display: none">
        总访客数 
        <span id="busuanzi_value_site_uv"></span>
         人
      </span>
    
    
  
</div>

  
  
  
</div>

  </footer>

  <!-- Scripts -->
  
  <script  src="https://lib.baomitu.com/nprogress/0.2.0/nprogress.min.js" ></script>
  <link  rel="stylesheet" href="https://lib.baomitu.com/nprogress/0.2.0/nprogress.min.css" />

  <script>
    NProgress.configure({"showSpinner":false,"trickleSpeed":100})
    NProgress.start()
    window.addEventListener('load', function() {
      NProgress.done();
    })
  </script>


<script  src="https://lib.baomitu.com/jquery/3.6.4/jquery.min.js" ></script>
<script  src="https://lib.baomitu.com/twitter-bootstrap/4.6.1/js/bootstrap.min.js" ></script>
<script  src="/guodd012/guodd012.gitee.io.git/js/events.js" ></script>
<script  src="/guodd012/guodd012.gitee.io.git/js/plugins.js" ></script>


  <script  src="https://lib.baomitu.com/typed.js/2.0.12/typed.min.js" ></script>
  <script>
    (function (window, document) {
      var typing = Fluid.plugins.typing;
      var subtitle = document.getElementById('subtitle');
      if (!subtitle || !typing) {
        return;
      }
      var text = subtitle.getAttribute('data-typed-text');
      
        typing(text);
      
    })(window, document);
  </script>




  
    <script  src="/guodd012/guodd012.gitee.io.git/js/img-lazyload.js" ></script>
  




  
<script>
  Fluid.utils.createScript('https://lib.baomitu.com/tocbot/4.20.1/tocbot.min.js', function() {
    var toc = jQuery('#toc');
    if (toc.length === 0 || !window.tocbot) { return; }
    var boardCtn = jQuery('#board-ctn');
    var boardTop = boardCtn.offset().top;

    window.tocbot.init(Object.assign({
      tocSelector     : '#toc-body',
      contentSelector : '.markdown-body',
      linkClass       : 'tocbot-link',
      activeLinkClass : 'tocbot-active-link',
      listClass       : 'tocbot-list',
      isCollapsedClass: 'tocbot-is-collapsed',
      collapsibleClass: 'tocbot-is-collapsible',
      scrollSmooth    : true,
      includeTitleTags: true,
      headingsOffset  : -boardTop,
    }, CONFIG.toc));
    if (toc.find('.toc-list-item').length > 0) {
      toc.css('visibility', 'visible');
    }

    Fluid.events.registerRefreshCallback(function() {
      if ('tocbot' in window) {
        tocbot.refresh();
        var toc = jQuery('#toc');
        if (toc.length === 0 || !tocbot) {
          return;
        }
        if (toc.find('.toc-list-item').length > 0) {
          toc.css('visibility', 'visible');
        }
      }
    });
  });
</script>


  <script src=https://lib.baomitu.com/clipboard.js/2.0.11/clipboard.min.js></script>

  <script>Fluid.plugins.codeWidget();</script>


  
<script>
  Fluid.utils.createScript('https://lib.baomitu.com/anchor-js/4.3.1/anchor.min.js', function() {
    window.anchors.options = {
      placement: CONFIG.anchorjs.placement,
      visible  : CONFIG.anchorjs.visible
    };
    if (CONFIG.anchorjs.icon) {
      window.anchors.options.icon = CONFIG.anchorjs.icon;
    }
    var el = (CONFIG.anchorjs.element || 'h1,h2,h3,h4,h5,h6').split(',');
    var res = [];
    for (var item of el) {
      res.push('.markdown-body > ' + item.trim());
    }
    if (CONFIG.anchorjs.placement === 'left') {
      window.anchors.options.class = 'anchorjs-link-left';
    }
    window.anchors.add(res.join(', '));

    Fluid.events.registerRefreshCallback(function() {
      if ('anchors' in window) {
        anchors.removeAll();
        var el = (CONFIG.anchorjs.element || 'h1,h2,h3,h4,h5,h6').split(',');
        var res = [];
        for (var item of el) {
          res.push('.markdown-body > ' + item.trim());
        }
        if (CONFIG.anchorjs.placement === 'left') {
          anchors.options.class = 'anchorjs-link-left';
        }
        anchors.add(res.join(', '));
      }
    });
  });
</script>


  
<script>
  Fluid.utils.createScript('https://lib.baomitu.com/fancybox/3.5.7/jquery.fancybox.min.js', function() {
    Fluid.plugins.fancyBox();
  });
</script>


  <script>Fluid.plugins.imageCaption();</script>

  <script  src="/guodd012/guodd012.gitee.io.git/js/local-search.js" ></script>

  <script defer src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js" ></script>





<!-- 主题的启动项，将它保持在最底部 -->
<!-- the boot of the theme, keep it at the bottom -->
<script  src="/guodd012/guodd012.gitee.io.git/js/boot.js" ></script>


  

  <noscript>
    <div class="noscript-warning">博客在允许 JavaScript 运行的环境下浏览效果更佳</div>
  </noscript>
</body>
</html>
